package com.mccken.demo.classload;

import java.nio.file.Path;
import java.nio.file.WatchEvent;

import cn.hutool.core.io.watch.Watcher;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2023-11-21 21:56
 **/
public class McckenFileSimpleWatcher implements Watcher {
	@Override
	public void onCreate(WatchEvent<?> event, Path currentPath) {
		System.out.println("onCreate");
	}

	@Override
	public void onModify(WatchEvent<?> event, Path currentPath) {
		System.out.println("onModify");
	}

	@Override
	public void onDelete(WatchEvent<?> event, Path currentPath) {
		System.out.println("onDelete");
	}

	@Override
	public void onOverflow(WatchEvent<?> event, Path currentPath) {
		System.out.println("onOverflow");
	}
}
